//
//  ViewController.h
//  Control Fun
//
//  Created by Mc on 17.03.12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

#define kSwitchesSegmentIndex 0

@interface ViewController : UIViewController 
<UIActionSheetDelegate> {
    UITextField *nameField;
    UITextField *numberField;
    UILabel *sliderLabel;
    UISwitch *leftSwitch;
    UISwitch *rightSwitch;
    UIButton *doSomethingButton;
}
@property (nonatomic, retain) IBOutlet UITextField *nameField;
@property (nonatomic,retain) IBOutlet UITextField *numberField;
@property (nonatomic,retain) IBOutlet UILabel *sliderLabel;
@property(nonatomic,retain) IBOutlet UISwitch *leftSwitch;
@property(nonatomic,retain) IBOutlet UISwitch *rightSwitch;
@property(nonatomic,retain) IBOutlet UIButton *doSomethingButton;

-(IBAction)textFieldDoneEditing:(id)sender;
-(IBAction)backgroundTap:(id)sender;
-(IBAction)sliderChanged:(id)sender;
-(IBAction)toggleControls:(id)sender;
-(IBAction)switchChanges:(id)sender;
-(IBAction)buttonPressed;

@end
